package com.sdruixinggroup.mondayb2b.models;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/9.
 */

public class HomeBeen {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512805730
     * banners : []
     * merchants : [{"type":1,"longitude":120.73598,"latitude":31.274665,"distance":"17.5千米","merchant_id":5,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701769","street":"松涛街","saled_count":0,"goods_count":0},{"type":1,"longitude":120.7359,"latitude":31.2746,"distance":"17.5千米","merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766","street":"汉嘉大厦","saled_count":6,"goods_count":3}]
     * special_offer : [{"goods_id":1,"type":2,"name":"化肥","goods_sn":"ss","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":13,"special_price":5,"stock":877,"praise_rate":100,"comment_count":0,"saled_count":4}]
     * hot : [{"goods_id":1,"type":2,"name":"化肥","goods_sn":"ss","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":13,"special_price":5,"stock":877,"praise_rate":100,"comment_count":0,"saled_count":4}]
     * recommend : [{"goods_id":2,"type":1,"name":"超级金克拉1号","goods_sn":"123300000001","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2,"special_price":0,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":3},{"goods_id":1,"type":2,"name":"化肥","goods_sn":"ss","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":13,"special_price":5,"stock":877,"praise_rate":100,"comment_count":0,"saled_count":4},{"goods_id":4,"type":1,"name":"测试化肥","goods_sn":"12300000000","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/c7e6986077cc4cd7086d6e558d1a495a.png","price":10,"special_price":3,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":5}]
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private List<Banner> banners;
    private List<MerchantsBean> merchants;
    private List<SpecialOfferBean> special_offer;
    private List<HotBean> hot;
    private List<RecommendBean> recommend;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<Banner> getBanners() {
        return banners;
    }

    public void setBanners(List<Banner> banners) {
        this.banners = banners;
    }

    public List<MerchantsBean> getMerchants() {
        return merchants;
    }

    public void setMerchants(List<MerchantsBean> merchants) {
        this.merchants = merchants;
    }

    public List<SpecialOfferBean> getSpecial_offer() {
        return special_offer;
    }

    public void setSpecial_offer(List<SpecialOfferBean> special_offer) {
        this.special_offer = special_offer;
    }

    public List<HotBean> getHot() {
        return hot;
    }

    public void setHot(List<HotBean> hot) {
        this.hot = hot;
    }

    public List<RecommendBean> getRecommend() {
        return recommend;
    }

    public void setRecommend(List<RecommendBean> recommend) {
        this.recommend = recommend;
    }

    public static class MerchantsBean {
        /**
         * type : 1
         * longitude : 120.73598
         * latitude : 31.274665
         * distance : 17.5千米
         * merchant_id : 5
         * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png
         * name : 张小姐的店铺
         * shopkeeper : 张小姐
         * phone : 18501701769
         * street : 松涛街
         * saled_count : 0
         * goods_count : 0
         */

        private int type;
        private double longitude;
        private double latitude;
        private String distance;
        private int merchant_id;
        private String thumb;
        private String name;
        private String shopkeeper;
        private String phone;
        private String street;
        private int saled_count;
        private int goods_count;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public String getDistance() {
            return distance;
        }

        public void setDistance(String distance) {
            this.distance = distance;
        }

        public int getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(int merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getShopkeeper() {
            return shopkeeper;
        }

        public void setShopkeeper(String shopkeeper) {
            this.shopkeeper = shopkeeper;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getStreet() {
            return street;
        }

        public void setStreet(String street) {
            this.street = street;
        }

        public int getSaled_count() {
            return saled_count;
        }

        public void setSaled_count(int saled_count) {
            this.saled_count = saled_count;
        }

        public int getGoods_count() {
            return goods_count;
        }

        public void setGoods_count(int goods_count) {
            this.goods_count = goods_count;
        }
    }

    public static class SpecialOfferBean {
        /**
         * goods_id : 1
         * type : 2
         * name : 化肥
         * goods_sn : ss
         * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
         * price : 13
         * special_price : 5
         * stock : 877
         * sale_price=1
         * praise_rate : 100
         * comment_count : 0
         * saled_count : 4
         * original_price=99
         */

        private int goods_id;
        private int type;
        private String name;
        private String goods_sn;
        private String thumb;
        private int price;
        private int special_price;
        private int stock;
        private int praise_rate;
        private int comment_count;
        private int saled_count;
        private int sale_price;
        private int original_price=0;

        public int getOriginal_price() {
            return original_price;
        }

        public void setOriginal_price(int original_price) {
            this.original_price = original_price;
        }

        public int getSale_price() {
            return sale_price;
        }

        public void setSale_price(int sale_price) {
            this.sale_price = sale_price;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGoods_sn() {
            return goods_sn;
        }

        public void setGoods_sn(String goods_sn) {
            this.goods_sn = goods_sn;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getSpecial_price() {
            return special_price;
        }

        public void setSpecial_price(int special_price) {
            this.special_price = special_price;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public int getPraise_rate() {
            return praise_rate;
        }

        public void setPraise_rate(int praise_rate) {
            this.praise_rate = praise_rate;
        }

        public int getComment_count() {
            return comment_count;
        }

        public void setComment_count(int comment_count) {
            this.comment_count = comment_count;
        }

        public int getSaled_count() {
            return saled_count;
        }

        public void setSaled_count(int saled_count) {
            this.saled_count = saled_count;
        }
    }

    public static class HotBean {
        /**
         * goods_id : 1
         * type : 2
         * name : 化肥
         * goods_sn : ss
         * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
         * price : 13
         * special_price : 5
         * stock : 877
         * praise_rate : 100
         * comment_count : 0
         * sale_price=1
         * saled_count : 4
         */

        private int goods_id;
        private int type;
        private String name;
        private String goods_sn;
        private String thumb;
        private int price;
        private int special_price;
        private int stock;
        private int praise_rate;
        private int comment_count;
        private int saled_count;
        private int sale_price;

        public int getSale_price() {
            return sale_price;
        }

        public void setSale_price(int sale_price) {
            this.sale_price = sale_price;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGoods_sn() {
            return goods_sn;
        }

        public void setGoods_sn(String goods_sn) {
            this.goods_sn = goods_sn;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getSpecial_price() {
            return special_price;
        }

        public void setSpecial_price(int special_price) {
            this.special_price = special_price;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public int getPraise_rate() {
            return praise_rate;
        }

        public void setPraise_rate(int praise_rate) {
            this.praise_rate = praise_rate;
        }

        public int getComment_count() {
            return comment_count;
        }

        public void setComment_count(int comment_count) {
            this.comment_count = comment_count;
        }

        public int getSaled_count() {
            return saled_count;
        }

        public void setSaled_count(int saled_count) {
            this.saled_count = saled_count;
        }
    }

    public static class RecommendBean {
        /**
         * goods_id : 2
         * type : 1
         * name : 超级金克拉1号
         * goods_sn : 123300000001
         * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
         * price : 2
         * special_price : 0
         * stock : 0
         * praise_rate : 0
         * comment_count : 0
         * saled_count : 3
         * sale_price=1
         */

        private int sale_price;
        private int goods_id;
        private int type;
        private String name;
        private String goods_sn;
        private String thumb;
        private int price;
        private int special_price;
        private int stock;
        private int praise_rate;
        private int comment_count;
        private int saled_count;

        public int getSale_price() {
            return sale_price;
        }

        public void setSale_price(int sale_price) {
            this.sale_price = sale_price;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGoods_sn() {
            return goods_sn;
        }

        public void setGoods_sn(String goods_sn) {
            this.goods_sn = goods_sn;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getSpecial_price() {
            return special_price;
        }

        public void setSpecial_price(int special_price) {
            this.special_price = special_price;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public int getPraise_rate() {
            return praise_rate;
        }

        public void setPraise_rate(int praise_rate) {
            this.praise_rate = praise_rate;
        }

        public int getComment_count() {
            return comment_count;
        }

        public void setComment_count(int comment_count) {
            this.comment_count = comment_count;
        }

        public int getSaled_count() {
            return saled_count;
        }

        public void setSaled_count(int saled_count) {
            this.saled_count = saled_count;
        }
    }

    public static class Banner{

        /**
         * name : 规范
         * pic : https://yingdd.oss-cn-hangzhou.aliyuncs.com/f3d2a0c6e6718054be158f2c1b7f6f0a.jpg
         * url : 规定发给对方
         */

        private String name;
        private String pic;
        private String url;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
